package com.cn.easy.export.model.excel

import org.apache.poi.ss.usermodel.CellStyle
import org.apache.poi.ss.usermodel.Workbook

/**
 * 单行聚合数据
 * 适用于一对一关系
 */
data class SingleRowMultiExcelColumn<Row>(
    override val title: ExcelTitle,
    override val key: String = title.value,
    override val cellStyle: ((Workbook, Row) -> CellStyle?)? = null,
    /**
     * 聚合数据
     */
    val children: List<ExcelColumn<Row>>,
) : ExcelColumn<Row>
